__author__ = 'yangxianming'
import  difflib

class Tools:

    def comparison(self, str_a, str_b):
        c = difflib.SequenceMatcher(self, str_a, str_b).quick_ratio()
        return str(int(c * 100)) + "%"